package com.vf.admin.utils.aliyunoss;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * <p>Title : 定时器</p>
 * <p>Description : </p>
 * <p>DevelopTools : IDEA</p>
 * <p>DevelopSystem : Windows10</p>
 *
 * @Author : NemoMeng
 * @Date 2023/7/20 17:14
 */
@Component
@EnableScheduling
public class TimerController {

    @Autowired
    CheckUtilsController checkUtilsController;

    @Scheduled(cron = "*/5 * * * * ?")
    public void image() {
        checkUtilsController.image();
//        System.out.println("每隔30秒执行一次：\"*/30 * * * * ?");
    }

    @Scheduled(cron = "*/5 * * * * ?")
    public void viedo() {
        checkUtilsController.video();

//        System.out.println("每隔530行一次：\"*/30 * * * * ?");
    }
}
